package org.csu.bbs.service;

import org.csu.bbs.entity.Notice;
import org.csu.bbs.result.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface NoticeService {
    List<Notice> GetAll();
    List<Notice> GetBySection(Integer sectionid);
    List<Notice> GetById(Integer id);
    int DeleteById(Integer id);
    Result AddNotice(Notice notice);
    Notice UpdateNotice(Notice notice);
    List<Notice> search(String keywords );
    void changeContent( Notice notice);
}
